package Mangos::DB::Mangos::GossipMenu;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'gossip_menu',

    columns => 
    [
        entry        => { type => 'integer', not_null => 1 },
        text_id      => { type => 'integer', not_null => 1 },
        cond_1       => { type => 'integer', default => '0', not_null => 1 },
        cond_1_val_1 => { type => 'integer', default => '0', not_null => 1 },
        cond_1_val_2 => { type => 'integer', default => '0', not_null => 1 },
        cond_2       => { type => 'integer', default => '0', not_null => 1 },
        cond_2_val_1 => { type => 'integer', default => '0', not_null => 1 },
        cond_2_val_2 => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'entry', 'text_id' ],
);

1;

package Mangos::DB::Mangos::GossipMenu::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GossipMenu' }

__PACKAGE__->make_manager_methods('gossip_menu');

1;
